package com.adinnet.api.classsCourse.mapper;

import com.adinnet.api.classsCourse.model.ClassCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 班级课程关系表 Mapper 接口
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-02
 */
public interface ClassCourseMapper extends BaseMapper<ClassCourse> {

    /**
     * 根据宝宝id获取对应状态的课程数
     * @param childId
     * @return
     */
    Integer getCourseNumByChildId(@Param("childId") Integer childId, @Param("status") Integer status);
}
